<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>武汉市中联众鑫建筑机械有限公司</title>
<meta name="keywords" content="塔式起重机出租，施工升降机出租，建筑设备出，武汉市中联众鑫建筑机械有限公司">
<meta name="description" content="武汉市中联众鑫建筑机械有限公司成立于2012年12月25日。承接各类塔式起重机、施工升降机租赁、安装、维修、售后服务一家专业提供塔吊、施工电梯的安装拆卸 、维修、售后服务、等建筑机械设备租赁、零配件供应的服务企业">
<link rel="stylesheet" media="all" type="text/css" href="index.css" />
</head>

<body>
<?php include 'top.php';
		include 'business/dao/BaseDataAccess.php';
		include 'business/model/model.php';
		include 'business/dao/ProductAccess.php';
		ini_set('display_errors',1);
		date_default_timezone_set("Asia/Shanghai");
		
		CONST ELEVATOR = "elevator";
		CONST TOWERFOOT = "towerfoot";
		
		$productDao = new ProductDao();
		$product = $productDao->getProduct($_GET['id']);
		$product->setCount($product->getCount() + 1);
		$productDao->updateProduct($product);
		$productResources = $product->getProductResources();
		?>

<!--center-->
<div class="box centent">
	<?php include 'left.php'; ?>
	<div class="right">
		<div class="center">
			<dl><h1>配件供应</h1></dl>
			<ul style="text-align:left;">
				<table width="710" cellpadding="0" cellspacing="0" border="0" align="center">
					<tr>
						<td width="200" align="center" valign="top" style="line-height:23px;"><a href="data_get.php?id=<?php echo $product->getThumbnailId()?>" title="电梯配件" target="_blank"><img src="data_get.php?id=<?php echo $product->getThumbnailId()?>" alt="<?php echo $product->getName()?>" border="0" style="border:1px solid #DEDEDE;" width="200"><br />点击查看图</a></td>
						<td width="10"></td>
						<td width="520" height="50" align="left" valign="top">
							<table cellpadding="0" cellspacing="0" border="0" width="500">
								<tr>
									<td height="25" align="left"><b>产品名称：</b></td>
									<td height="25" align="left"><b><?php echo $product->getName()?></b></td>
								</tr>
								<tr>
									<td height="25" width="70" align="left"><b>产品类别：</b></td>
									<td height="25" align="left"><?php
									if (ELEVATOR == $product->getCatalog()) {
										echo "电梯零配件";
									} else if (TOWERFOOT == $product->getCatalog()) {
										echo "塔基配件";
									}
									?></td>
								</tr>
								<tr>
									<td height="25" align="left"><b>浏览次数：</b></td>
									<td height="25" align="left"><?php echo $product->getCount()?></td>
								</tr>
							</table>
						</td>
					</tr>
					<tr><td colspan="3" height="1" bgcolor="#CCCCCC"></td></tr>
					<tr><td colspan="3" height="25" bgcolor="#EFEFEF" style="padding-left:20px; font-size:12px; font-weight:bold; color:#006600" align="left">产品介绍&gt;&gt;</td></tr>
					<tr><td colspan="9" style="padding-left:10px; padding-right:10px; line-height:23px;" align="left">
						<P>
							<?php
							foreach ($productResources as $productResource) {
							?>
							<img border=0 src="data_get.php?id=<?php echo $productResource->getResourceId()?>" />
							<?php
							}				 
							?>
						</P>
						</td>
					</tr>
					<tr><td colspan="3" height="15"></td></tr>
				</table>
			</ul>
		</div>
	</div>
</div>
		
<?php include 'bottom.php';?>
</body>
</html>